<!-- 导航URL -->
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-md-12">
        <ol class="breadcrumb">
            <li><a>主页</a></li>
            <li><a>贷款送鼓励金</a></li>
            <li class="active"><strong>导入赠送</strong></li>
        </ol>
    </div>
</div>


<!-- 主要内容 -->
<div class="wrapper wrapper-content animated fadeIn" ng-app ng-controller="couponImportLoanCtrl">
    <form class="form-horizontal" name="horizontal">
        <div class="row">
            <div class="col-lg-12">

                <div class="panel-body ibox float-e-margins">

                    <div class="ibox-title">
                        <h5>导入赠送</h5>
                    </div>
                    <div class="ibox-content">
                        <div class="form-group">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">赠送渠道：</label>
                                <div class="col-sm-2">
                                    <select class="form-control" ng-model="addCoupon.sendChannel" ng-options="x.value as x.text for x in sendChannelList">
                                    </select>
                                </div>
                                <label class="col-sm-2 control-label">赠送券类型：</label>
                                <div class="col-sm-3">
                                    <select class="form-control" ng-model="addCoupon.sendTypeId" ng-options="x.value as x.text for x in sendTypeList">
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">导入文件:</label>
                            <div class="col-sm-3">
                                <input type="file" nv-file-select="" ng-model="fileSelect" uploader="uploader" multiple/>
                                <table class="table">
                                    <tbody>
                                    <tr ng-repeat="item in uploader.queue">
                                        <td>
                                            <strong>{{ item.file.name }}</strong>
                                        </td>
                                        <td nowrap>
                                            <button type="button" class="btn btn-danger btn-xs" ng-click="item.remove()">
                                                <span class="glyphicon glyphicon-trash"></span>删除
                                            </button>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>

                            <div class="col-sm-3">
                                <a href="cardAndReward/couponImportLoanTemplate" >贷款送鼓励金导入赠送模板下载</a>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>

        <div class="col-lg-12 bgff">
            <div class="col-lg-12">
                <label class="col-sm-2"></label>
                <button class="btn btn-primary btn-rounded btn-mr20" type="submit"
                        ng-disabled="horizontal.$invalid || uploader.queue.length==0 || submitting"
                        ng-click="addImport()">提交</button>
                <a class="btn btn-primary4 btn-rounded" type="button" ui-sref="creditMgr.queryLoanAndReward" >返回</a>
            </div>
        </div>
    </form>

    <form class="form-horizontal" id="form2" name="horizontalMsg" novalidate>
        <div id="importMsg" class="modal fade" tabindex="-1" role="dialog">
            <div class="modal-dialog" style="width:900px">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal">
                            &times;</button>
                        <h3 class="modal-title">导入赠送</h3>
                    </div>
                    <div class="modal-body">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">导入赠送结果:</label>
                            <div class="col-sm-10">
                                <textarea class="form-control" rows="6" cols="10" ng-model="mgsInfo" ></textarea>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
